import express from "express"
import {
    getMovieDetails,
    getMoviesByCategory,
    getMovieTrailer,
    getSimilarMovies,
    getTrendingMovie,
    getNowPlayingMovies,
    getRecommandationMovies,
} from "../controller/movie.controller.js"

const router = express.Router()

router.get("/trending", getTrendingMovie)
router.get("/nowplaying", getNowPlayingMovies)
router.get("/:id/trailer", getMovieTrailer)
router.get("/:id/details", getMovieDetails)
router.get("/:id/similar", getSimilarMovies)
router.get("/:id/recommandations", getRecommandationMovies)
router.get("/:category", getMoviesByCategory)

export default router


